/**
 * 
 */
package com.springinaction.chapter01.hello;

/**
 * @author raj
 * Mar 23, 2011
 * 
 */
public class GreetingServiceImpl implements GreetingService {
	private String greeting;
	
	public GreetingServiceImpl(String greeting){
		this.greeting=greeting;
	}

	/* (non-Javadoc)
	 * @see com.springinaction.chapter01.hello.GreetingService#sayGreeting()
	 */
	@Override
	public void sayGreeting() {
		System.out.println(greeting);
	}
	
	public void setGreeting(String greeting){
		this.greeting=greeting;
	}

}
